package com.pri.chat.bean;

import com.netease.nimlib.sdk.msg.attachment.MsgAttachment;
import com.netease.nimlib.sdk.msg.constant.MsgStatusEnum;
import com.netease.nimlib.sdk.msg.constant.MsgTypeEnum;
import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum;
import com.netease.nimlib.sdk.msg.model.RecentContact;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.Map;

public class RecentContactMy implements RecentContact {
    private String contactId;
    private String fromAccount;
    private String fromNick;
    private SessionTypeEnum sessionType;
    private String recentMessageId;
    private MsgTypeEnum msgType;
    private MsgStatusEnum msgStatus;
    private int unreadCount;
    private String content;
    private long time;
    private MsgAttachment msgAttachment;
    private long tag;
    private Map<String, Object> extension;
    public RecentContactMy(RecentContact recentContact){
        this.contactId = recentContact.getContactId();
        this.fromAccount = recentContact.getFromAccount();
        this.fromNick = recentContact.getFromNick();
        this.sessionType = recentContact.getSessionType();
        this.recentMessageId = recentContact.getRecentMessageId();
        this.msgType = recentContact.getMsgType();
        this.msgStatus = recentContact.getMsgStatus();
        this.unreadCount = recentContact.getUnreadCount();
        this.content = recentContact.getContent();
        this.time = recentContact.getTime();
        this.msgAttachment = recentContact.getAttachment();
        this.tag = recentContact.getTag();
        this.extension = recentContact.getExtension();
    }

    @Override
    public String getContactId() {
        return contactId;
    }

    @Override
    public String getFromAccount() {
        return fromAccount;
    }

    @Override
    public String getFromNick() {
        return fromNick;
    }

    @Override
    public SessionTypeEnum getSessionType() {
        return sessionType;
    }

    @Override
    public String getRecentMessageId() {
        return recentMessageId;
    }

    @Override
    public MsgTypeEnum getMsgType() {
        return msgType;
    }

    @Override
    public MsgStatusEnum getMsgStatus() {
        return msgStatus;
    }

    @Override
    public void setMsgStatus(MsgStatusEnum msgStatusEnum) {
        this.msgStatus = msgStatusEnum;
    }

    @Override
    public int getUnreadCount() {
        return unreadCount;
    }

    @Override
    public String getContent() {
        return content;
    }

    @Override
    public long getTime() {
        return time;
    }

    @Override
    public MsgAttachment getAttachment() {
        return msgAttachment;
    }

    @Override
    public void setTag(long l) {
        this.tag = l;
    }

    @Override
    public long getTag() {
        return tag;
    }

    @Override
    public Map<String, Object> getExtension() {
        return extension;
    }

    @Override
    public void setExtension(Map<String, Object> map) {
        this.extension = map;
    }
}

